<div class="pull-right" style="width: 7%; margin-right:30px;">
	<input type="button" id="addBtn" name="addBtn" class="btn btn-success btn-small dropdown-toggle span12" value="+添加机构"/>
	<!-- <input type="button" id="editOrg" name="editOrg" class="btn btn-success btn-small dropdown-toggle span12" value="编辑机构" style="margin-top:-55px; margin-left: -85px;"/>
	<input type="button" id="delOrg" name="delOrg" class="btn btn-success btn-small dropdown-toggle span12" value="删除机构" style="margin-top:-55px; margin-left: -170px;"/> -->
</div>


<div id="orgAdd" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="title">添加机构</h3>
	</div>

	<div class="modal-body">
		<form class="form-horizontal">
			<div class="control-group">
				<label class="control-label" for="orgname">机构名称：</label>
				<div class="controls">
					<input type="text" id="orgname" placeholder="机构名称" style="width:245px">
					<font  id="message" style="color:red;font-size:3px;display:none">请填写机构名称</font>
				<!-- 	<div style="position:relative; margin-left:18px;" id="nameMessage" >
					<font color="red" id="message">请填写机构名称</font>
				</div> -->
				</div>
					
			</div>
			<div class="control-group">
				<label class="control-label" for="parentShow">上级机构：</label>
				<div class="controls">
					<input type="text" id="parentShow" placeholder="上级机构" style="width:245px">
					<input type="button" id="parentOrg" name="parentOrg" value="..."  style="position:relative;"/>
					<input type="hidden" id="parent", name="parent"/>
					<font  id="parentMsg" style="color:red;font-size:3px;display:none">根节点已存在，请选择上级机构</font>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="role">机构类型：</label>
				<div class="controls">
					<select name="orgtype" id="orgtype" style="width:259px;">
						<option  value="-1">--- 选择机构类型 ---</option>
						<option  value="C">总公司/子公司</option>
						<option  value="D">部门</option>	
					</select>
					<font  id="typeMsg" style="color:red;font-size:3px;display:none">请选择机构类型</font>
				</div>
			</div>
			<div class="control-group" id="showOrgsystem" style="display:none">
				<label class="control-label" for="role">所属体系：</label>
				<div class="controls">
					<select name="orgsystem" id="orgsystem"  style="width:259px">
						<option  value="-1">--- 选择体系 ---</option>
					</select>
				</div>
			</div>
			
			<div class="control-group" id="showAddress" style="display:none">
				<input type="hidden" id="hideAddress" />
				<label class="control-label" for="role">所属区域：</label>
				<div class="controls">
					<select name="orgAddress" id="orgAddress" style="width:259px;">
						<option  value="-1">--- 选择机构所属区域 ---</option>
						<option  value="1">北京</option>
						<option  value="2">广州</option>
						<option  value="3">深圳</option>
					</select>
					<font  id="addrMsg" style="color:red;font-size:3px;display:none">请选择机构所属区域</font>
				</div>
			</div>

			
			<div class="control-group">
				<label class="control-label" for="role">机构负责人：</label>
				<div id="roleUser" class="controls">
					<input type="text" name="orgresp" id="orgresp" placeholder="机构负责人" style="width:245px"/>
					<font  id="respMsg" style="color:red;font-size:3px;display:none"></font>
					<input type="hidden" id="respId" />
					<input type="hidden" id="hideName"/>
				</div>
			</div>
		</form>
	</div>


	<div class="modal-body">
		<form class="form-horizontal">
	<!-- <table>
		<tr>
			<td class="control-label" align="right">机构名称：</td>
			<td class="controls" style="width:55%;">
				<input type="text" name="orgname" id="orgname"  style="width:100%;"/>
			</td>
			<td style="width:23%;">
				<div style="position:relative; margin-left:18px; display:none" id="nameMessage" >
					<font color="red" id="message">请填写机构名称</font>
				</div>
			</td>
			
		</tr>
		<tr>
			<td class="control-label" align="right">上级机构：</td>
			<td class="controls" style="width:55%;">
				<input type="text" name="parentShow" id="parentShow" readonly="true" style="width:100%;"/>
			</td>
			<td style="width:20%;">
				<div id="parentbtn" >
				<input type="button" id="parentOrg" name="parentOrg" value="..."  style="position:relative; margin-left:18px;"/>
			    </div>
		    </td>
			<input type="hidden" id="parent", name="parent"/>
		</tr>
		<tr>
			<td class="control-label" align="right">类型：</td>
			
			<td class="controls" style="width:55%;">
				<select name="orgtype" id="orgtype" style="width:105.5%;">
					<option  value="-1">--- 选择机构类型 ---</option>
					<option  value="C">总公司/子公司</option>
					<option  value="D">部门</option>	
				</select>
			</td>
			<td style="width:23%;">
				<div style="position:relative; margin-left:18px; display:none" id="typeMessage" >
					<font color="red" id="typeMsg">请选择机构类型</font>
				</div>
			</td>
		</tr>
		<tr>
			<td class="control-label" align="right">所属体系：</td>
			<td class="controls" style="width:55%;">
				
				<select name="orgsystem" id="orgsystem" style="width:105.5%;">
					<option  value="-1">--- 选择体系 ---</option>
				</select>
			</td>
		</tr>
		
		<tr>
			<input type="hidden" id="respId" />
			<td class="control-label" align="right">机构负责人：</td>
			<td class="controls" width="55%">
				<input type="text" name="orgresp" id="orgresp" style="width:100%;"/>
			</td>
		</tr>
		
	</table> -->

</form>
	</div>
	<div class="modal-footer">
		<button id="saveOrg"class="btn btn-primary">确定</button>
		<button id="cancleSave" class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
	</div>
</div>

<div id="tree1">
	<!-- <span> test ligerTree </span> -->

</div>

<div id="chooseParent" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="title">选择父级机构</h3>
	</div>
	<div class="modal-body">
		<div id="chooseOrg"></div>
		
	</div>
	<div class="modal-footer">
		<!-- <button id="choosenOrg"class="btn btn-primary">确定</button> -->
		<button id="cancle" class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
	</div>
</div>


<div id="selOrg" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="title">查看机构</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal">
	<table class="table table-striped table-bordered table-hover" border="0" cellpadding="0" cellspacing="0"  style="table-layout:fixed;">
		<tr>
			<td style="width:30%;word-wrap:break-word;" align="right">机构名称：</td>
			<td style="width:70%;word-wrap:break-word;" id="showName" align="left"></td>
			
		</tr>
		<tr>
			<td style="width:30%;word-wrap:break-word;" align="right">上级机构：</td>
			<td style="width:70%;word-wrap:break-word;" id="showParent" align="left"></td>
			
		</tr>
		<tr>
			<td style="width:30%;word-wrap:break-word;" align="right" id="changeMsg">所属体系：</td>
			<td style="width:70%;word-wrap:break-word;" id="showSys" align="left"></td>
		</tr>
		<tr>
			<td style="width:30%;word-wrap:break-word;" align="right">机构负责人：</td>
			
			<td style="width:70%;word-wrap:break-word;" id="orgResp" align="left"></td>
		</tr>
		
	</table>

</form>
	</div>
	<div class="modal-footer">
		<button id="back" class="btn" data-dismiss="modal" aria-hidden="true">返回</button>
	</div>
</div>

<input type="hidden" id="orgid" name="orgid" />
